﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class PurchaseOrderInstallmentItemBLL
    {
        private static readonly PurchaseOrderInstallmentItemDAL dal = DataAccess.CreatePurchaseOrderInstallmentItem();

        public PurchaseOrderInstallmentItemBLL()
        {
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetPurchaseOrderInstallmentItem(int PoSeq)
        {
            return dal.GetPurchaseOrderInstallmentItem(PoSeq);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetPurchaseOrderInstallmentItemFromInstallment(int install_seq)
        {
            return dal.GetPurchaseOrderInstallmentItemFromInstallment(install_seq);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetBidderQuotationFromBidder(int BidderSeq)
        {
            return dal.GetBidderQuotationFromBidder(BidderSeq);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetBidderQuotationFromPurchaseOrder(int po_seq)
        {
            return dal.GetBidderQuotationFromPurchaseOrder(po_seq);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetBidderQuotationFromBidderForConclusion(int BidderSeq)
        {
            return dal.GetBidderQuotationFromBidderForConclusion(BidderSeq);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetPurchaseOrderInstallmentItemWithConclusion(int po_seq)
        {
            return dal.GetPurchaseOrderInstallmentItemWithConclusion(po_seq);
        
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetBidderQuotationFromBidderForInstallment(int BidderSeq, int install_number)
        {
            return dal.GetBidderQuotationFromBidderForInstallment(BidderSeq, install_number);
        }

        public IList<PurchaseOrderInstallmentItemInfo> GetBidderQuotationFromPurchaseOrderForInstallment(int po_seq)
        {
            return dal.GetBidderQuotationFromPurchaseOrderForInstallment(po_seq);
        }

        public void Insert(IList<PurchaseOrderInstallmentItemInfo> infoList, Nullable<int> install_seq, PurchaseOrderInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, install_seq, info, dbManagerTrans);
        }

        public void Insert(IList<PurchaseOrderInstallmentItemInfo> infoList, Nullable<int> install_seq, PurchaseOrderInstallmentInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, install_seq, info, dbManagerTrans);
        }

        public void Update(IList<PurchaseOrderInstallmentItemInfo> infoList)
        {
            dal.Update(infoList);
        }
    }
}
